package cn.cdeden.knowledge.controller.recycle.factory;

import org.hibernate.annotations.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class RecycleFactory {

    private final String RECYCLE = "Recycle";

    //RecycleInterface
    @Autowired
    private Map<String, RecycleInterface> recycleMap;

    public RecycleInterface getRecycle(String recycle) {
        return recycleMap.get(recycle + RECYCLE);
    }
}
